#ifndef __U8G2_HELPER_H__
#define __U8G2_HELPER_H__
#include "def.h"
typedef struct context
{
    int accel;
    int maxSpeed;
    int currentValue;
    int targetValue;

    int __currentPos;    // 当前值,由ease计算得到
    int __currentSpeed;  // 当前速度
    int __accFrom1ToMaxSpeedValuePosition;
    int __accFromMaxSpeedTo1ValuePosition;
} U8g2EaseMoveHandler;

void u8g2EaseInit(U8g2EaseMoveHandler *handler, int accel, int maxSpeed, int currentValue, int targetValue);
int u8g2Ease(U8g2EaseMoveHandler *handler);
#endif
